package com.hjx.movie.core.system.vo;

import com.hjx.movie.common.utils.tree.TreeNode;
import com.hjx.movie.persistence.system.model.IvyArea;

import java.util.List;

/**
 * <p>Title:</p>
 * <p>Description:</p>
 *
 * @author hjx
 * @date 2021/1/30 - 17:33
 */
public class AreaTreeNode extends IvyArea implements TreeNode<AreaTreeNode> {
    private Long nodeId;
    private Long parentId;
    private List<AreaTreeNode> children;
    @Override
    public Long getNodeId() {
        return super.getAreaId();
    }

    @Override
    public Long getParentId() {
        return super.getAreaPid();
    }

    @Override
    public Boolean getIsLeaf() {
        return super.getIsLeaf();
    }

    @Override
    public Integer getSort() {
        return super.getSort();
    }

    @Override
    public void setChildren(List<AreaTreeNode> children) {
        this.children = children;
    }

    @Override
    public List<AreaTreeNode> getChildren() {
        return this.children;
    }
}
